<template>
  <section class="main">
    <transition name="fade">
      <!-- <router-view :key="key"></router-view> -->
      <router-view @treeRefresh="treeRefresh"></router-view>
    </transition>
  </section>
</template>

<script>
export default {
  name: 'libraryCategoryMain',
  methods: {
    data: () => ({
      asyncData: 'q'
    }),
    treeRefresh() {
      this.$emit('treeRefresh')
    }
  },
  computed: {
    // key() {
    //   return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
    // }
  }
}
</script>
<style scoped>
  .main {
    height: 100%;
  }

</style>
